package edu.gduf;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * Demo Class
 *
 * @author 古市
 * @date 2020-11-17 23:42
 **/
public class ServletInitializer extends SpringBootServletInitializer {
    public ServletInitializer() {
        System.out.println("初始化ServletInitializer");
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        //MyApplication是启动类名
        return application.sources(PartyApplication.class);
    }
}
